﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CarManager.aspx.cs" Inherits="YhmOA.Integrated.Car.CarManager" %>
<%@ Register Assembly="YhmOAWebControls" Namespace="YhmOA.WebControls" TagPrefix="YhmOA" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" rel="Stylesheet" href="../../Styles/Common.css" />
    <script type="text/javascript" src="../../Scripts/jquery-1.5.2.min.js"></script>
    <script type="text/javascript" src="../../Scripts/include.jquery.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="MainRound">
        <div class="MainRoundContent">
            <div class="MainRoundContentW">
                <div class="MainBody">
        <div class="Navigation">
            综合行政 >> 车辆管理 >> 车辆管理 
        </div>
        <div style="border: 1px solid #93BEE2; border-bottom: 0px; padding: 8px 0 8px 8px;">
            <table>
                <tr>
                    <td><input class="Button" onclick="ShowDialog('CarForm.aspx?mode=1','添加车辆',845,565);" style="width:60px" type="text" value="添加" /></td>
                    <td><input class="Button" onclick="DeleteData();" style="width:60px" type="text" value="删除" /></td>
                    <td>
                        <asp:TextBox ID="txt_Search" runat="server" notAjaxRender="notAjaxRender" CssClass="TextBoxSearch" onkeyup="Search();"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div style="overflow:auto;">
        <asp:GridView ID="gvShow" runat="server" Width="2370px" EmptyDataText="暂无数据..." CssClass="Table">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <input type="checkbox" id="allChecked" onclick="CheckedEvent('allChecked');" value="0" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input  id="ItemChk" class="ItemChk" name="ItemChk" type="checkbox" value='<%# Eval("Id") %>' />
                    </ItemTemplate>
                    <ItemStyle Width="25px" CssClass="TdCenter"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate><a href="javascript:void(0);">操作</a></HeaderTemplate>
                    <ItemTemplate><a onclick="ShowDialog('CarForm.aspx?mode=0&id=<%# Eval("Id") %>','查看车辆信息',845,540);" href="javascript:void(0);">查看</a>
                    <a onclick="ShowDialog('CarForm.aspx?mode=2&id=<%# Eval("Id") %>','修改车辆信息',845,565);" href="javascript:void(0);">修改</a></ItemTemplate>
                    <ItemStyle Width="80px" CssClass="TdCenter"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('PlateNum');" href="javascript:void(0);">车牌号码</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("PlateNum")%></ItemTemplate>
                        <ItemStyle Width="160px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('PlateModel');" href="javascript:void(0);">厂牌型号</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("PlateModel")%></ItemTemplate>
                        <ItemStyle Width="160px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('FrameNum');" href="javascript:void(0);">车架号</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("FrameNum")%></ItemTemplate>
                        <ItemStyle Width="160px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('DrivingNum');" href="javascript:void(0);">行车证号</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("DrivingNum")%></ItemTemplate>
                        <ItemStyle Width="160px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('DrivingBeginTime');" href="javascript:void(0);">行车证生效日期</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("DrivingBeginTime")%></ItemTemplate>
                        <ItemStyle Width="160px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('DrivingBeginTime');" href="javascript:void(0);">行车证生效日期</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("DrivingBeginTime")%></ItemTemplate>
                        <ItemStyle Width="160px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('CarType');" href="javascript:void(0);">车辆类型</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("CarType")%></ItemTemplate>
                        <ItemStyle Width="100px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('EngineNum');" href="javascript:void(0);">发动机编号</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("EngineNum")%></ItemTemplate>
                        <ItemStyle Width="160px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('ProDate');" href="javascript:void(0);">出厂日期</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("ProDate")%></ItemTemplate>
                        <ItemStyle Width="160px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('BuyDate');" href="javascript:void(0);">购买日期</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("BuyDate")%></ItemTemplate>
                        <ItemStyle Width="160px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('BuyPrice');" href="javascript:void(0);">购买价格</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("BuyPrice")%></ItemTemplate>
                        <ItemStyle Width="100px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('Colour');" href="javascript:void(0);">车辆颜色</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Colour")%></ItemTemplate>
                        <ItemStyle Width="100px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('LoadLimit');" href="javascript:void(0);">载重</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("LoadLimit")%></ItemTemplate>
                        <ItemStyle Width="100px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('SeatLimit');" href="javascript:void(0);">座位</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("SeatLimit")%></ItemTemplate>
                        <ItemStyle Width="50px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('OilType');" href="javascript:void(0);">使用油类</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("OilType")%></ItemTemplate>
                        <ItemStyle Width="100px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('RoadHaul');" href="javascript:void(0);">行驶里程</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("RoadHaul")%></ItemTemplate>
                        <ItemStyle Width="100px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('Purpose');" href="javascript:void(0);">用途</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Purpose")%></ItemTemplate>
                        <ItemStyle Width="100px"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <a onclick="Sort('Remarks');" href="javascript:void(0);">备注</a></HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Remarks")%></ItemTemplate>
                        <ItemStyle Width="200px"/>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="ThCenter"/>
        </asp:GridView></div>
        <YhmOA:Pager ID="gvShowPager" runat="server"/>
    </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
